﻿
@model Work.UI.Web.MVC.Models.Registration.UserModel

@{
    ViewBag.Title = "EmployerStep1";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
}

@section Include{
    <script type="text/javascript" language="javascript" src="@Url.Content("~/Scripts/View/Registration/Uniqueness.js")"></script>
}

@section Menu{
    @RenderPage("~/Views/Shared/_EmployerMenu.cshtml")
}

@{
    Html.EnableClientValidation(true);
}


<h2>EmployerStep1</h2>

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td>
                Login
            </td>
            <td>
                @Html.TextBoxFor(model => model.Name, new { id = "tbLogin" })
                @Html.ValidationMessageFor(model => model.Name) <label id="unLogin">Ім’я вже зайняте</label>
            </td>
        </tr>
        <tr>
            <td>
                Email
            </td>
            <td>
                @Html.TextBoxFor(model => model.Email, new { id = "tbEmail" })
                @Html.ValidationMessageFor(model => model.Email) <label id="unEmail">Email вже зайнятий</label>
            </td>
        </tr>
        <tr>
            <td>
                Password
            </td>
            <td>
                @Html.PasswordFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </td>
        </tr>
        <tr>
            <td>
                Compare password
            </td>
            <td>
                @Html.PasswordFor(model => model.ComparePassword)
                @Html.ValidationMessageFor(model => model.ComparePassword)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" id="nextStep"/>
            </td>
        </tr>
    </table>
}